Kameleon-Plus
0.3.2
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
src
ccmc
Attribute.h
Go to the documentation of this file.
1
/*
2
* Attribute.h
3
*
4
* Created on: June 1, 2009
5
* Author: David Berrios
6
*/
7
8
#ifndef ATTRIBUTE_H_
9
#define ATTRIBUTE_H_
10
#include <string>
11
#include <ostream>
12
13
namespace
ccmc
14
{
21
class
Attribute
22
{
23
24
public
:
25
26
enum
AttributeType
27
{
28
FLOAT
,
INT
,
STRING
29
};
30
31
std::string
getAttributeName
();
32
void
setAttributeName
(std::string attributeName);
33
void
setAttributeValue
(std::string& value);
34
void
setAttributeValue
(
int
& value);
35
void
setAttributeValue
(
float
& value);
36
AttributeType
getAttributeType
();
37
float
getAttributeFloat
();
38
std::string
getAttributeString
();
39
int
getAttributeInt
();
40
Attribute
();
41
std::string
toString
()
const
;
42
43
virtual
~Attribute
();
44
friend
std::ostream&
operator<<
(std::ostream& out,
const
Attribute
attribute);
45
46
private
:
47
std::string attributeName;
48
std::string sValue;
49
int
iValue;
50
float
fValue;
51
AttributeType
type;
52
53
};
54
}
55
56
#endif
/* ATTRIBUTE_H_ */
Generated on Wed Apr 16 2014 18:34:46 for Kameleon-Plus by
1.8.3